package me.itsoo.artemis.framework.repository.executor;

import java.sql.Connection;

/**
 * Transaction
 *
 * @author zxy
 * @version 0.0.1
 * @since 2023/5/18
 */
public interface Transaction {

    /**
     * 提交事务
     *
     * @param conn Connection
     */
    void commit(Connection conn);

    /**
     * 回滚事务
     *
     * @param conn Connection
     */
    void rollback(Connection conn);

}
